﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PayBalance.aspx.cs" Inherits="RLPUR.Web.PayBalance" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>付款冲账</title>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Page">
            <div class="Title">
                <asp:Label ID="PageTitle" runat="server" Text="付款冲账"></asp:Label>
            </div>
            <div class="Operating">
                <ul>
                    <li class="Caption">最晚付款日期
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="DateFrom" runat="server" CssClass="Date"></asp:TextBox>
                    </li>
                    <li class="Caption">~
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="DateTo" runat="server" CssClass="Date"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">厂商代码
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="VenNo" runat="server"></asp:TextBox>
                    </li>
                    <li class="Caption">厂商名称
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="VenName" runat="server"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">发票号码
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="KpNo" runat="server"></asp:TextBox>
                    </li>
                    <li class="Caption"></li>
                    <li class="Content">
                        <asp:RadioButtonList ID="IsPay" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="未冲账" Value="N"></asp:ListItem>
                            <asp:ListItem Text="所有" Value="Y"></asp:ListItem>
                        </asp:RadioButtonList></li>
                    <li class="LineFeed"></li>
                    <li class="Button">
                        <asp:Button ID="OKButton" runat="server" Text="查询"
                            OnClick="OKButton_Click" />
                        <asp:Button ID="CancelButton" runat="server" Text="取消"
                            OnClick="CancelButton_Click" />
                        <%--                        <asp:Button ID="CreateButton" runat="server" Text="新增"
                            CssClass="Highlighted" />--%>
                        <asp:Button ID="ExportButton" runat="server" Text="导出"
                            CssClass="Highlighted" OnClick="ExportButton_Click" />
                    </li>
                </ul>
            </div>
            <div class="List">
                <asp:GridView ID="List" runat="server" EmptyDataText="<%$ Resources:iiWeb, EmptyData %>"
                    EnableModelValidation="True" OnPageIndexChanging="List_PageIndexChanging" OnRowDataBound="List_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="冲账">
                            <ItemTemplate>
                                <asp:LinkButton ID="RowEditButton" runat="server" CssClass="ImageButton ImageButtonEdit"
                                    ToolTip='<%# Eval("InvoiceId").ToString().Trim() %>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="kpno" HeaderText="发票号码" />
                        <asp:BoundField DataField="kpamt" HeaderText="发票金额" />
                        <asp:BoundField DataField="payamt" HeaderText="已付金额" />
                        <asp:BoundField DataField="remainAmt" HeaderText="未付金额" />
                        <asp:BoundField DataField="finaldate" HeaderText="最晚付款日期" />
                    </Columns>
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>
